<script language="javascript">
jQuery(function() 
{ 
    $('#D_Regional').select2({
		placeholder: "Select Regional",
		minimumInputLength: 3,
		multiple: false,
		quietMillis: 0,
		id: function(bond){ return bond.AREA_ID;},
		ajax: {
				url: "getfilterRegional",
				dataType: 'json',
				type: 'POST',
				data: function(term, page) 
				{
					return {
								SearchReg: term,
								page: page || 1
							}
				},
				results: function(bond, page) 
				{
					return {results: bond.Show_Region, more: (bond.Show_Region && bond.Show_Region.length == 10 ? true: false)}
				}
				},
				formatResult: function(bond) {return '<div class="select2-user-result">' + bond.REGIONAL_NAME + '</div>'},
				formatSelection: function(bond){return bond.REGIONAL_NAME},
				initSelection: function(elem, cb){return elem}
    })
})
</script>
<label class="col-md-4">Regional</label>
<div class="col-md-8">
	<?php if($get_Regional)
	{?>
		<input type="text" value="" id="D_Regional" class="select2 form-control input-sm">
	<?php }
	else
	{?>
		<input type="text" value="" id="D_Regional" class="select2 form-control input-sm" disabled="disabled">
	<?php 
	}?>
</div>
